<?php
/**
 * Created by PhpStorm.
 * User: 94004
 * Date: 2017/12/30
 * Time: 22:00
 */
header("Content-Type:text/html;charset=utf-8;");
require_once "../util/db_helper.php";
$status = 2;
$id = $_POST["id"];
$res = updateStatusById("comments", $id, $status);
$arr = array("code" => 101, "msg" => "驳回失败");
if ($res) {
    $arr["code"] = 100;
    $arr["msg"] = "驳回成功";
}
echo json_encode($arr, JSON_UNESCAPED_UNICODE);
?>